/**
 * File:   DHTNodeRow.java
 * Author: Gvennet
 */
package dht.node;

import dht.identifier.identifier.Identifier;

import java.net.InetAddress;

/**
 * todo write javadoc
 */
public final class DHTNodeRow
{

	private final Identifier id;

	private final InetAddress addr;

	private final int port;

	private long contactTime;

	public DHTNodeRow(Identifier id, InetAddress addr, int port, long contactTime)
	{
		this.id = id;
		this.addr = addr;
		this.port = port;
		this.contactTime = contactTime;

	}

	public Identifier getId()
	{
		return id;
	}

	public InetAddress getInetAddress()
	{
		return addr;
	}

	public int getPort()
	{
		return port;
	}

	public long getContactTime()
	{
		return contactTime;
	}

	public void setContactTime(long time)
	{
		contactTime = time;
	}
}

